<div class="card">
	<div class="title"><?php echo $this->escape($this->training->Name);?></div>
	<div class="line">
		<div class="item">R&#233;mun&#233;ration&nbsp;:&nbsp;<?php $p = $this->training->getPayment();if(isset($p) && $p instanceof Core_Business_Payment) 
		{echo $this->escape($p->Label)."&nbsp;Euros";}else {echo " Prix non commniqu&#233;"; }?></div>
		<div class="item">Dur&#233e&nbsp;:&nbsp;<?php echo $this->escape($this->training->Duration)?> jour(s)</div>
		<div class="item"></div>
	</div>
	<div class="line">
		<div class="item">Localit&#233;&nbsp;: 
			<div>
		<?php if(is_array($this->training->AllZone) && count($this->training->AllZone)>0):?>
				<ul>
				<?php foreach ($this->training->AllZone as $zone):?>
				<?php $z = Core_Business_Zone::getByCodeinsee($zone->getCodeinsee());?>
				<li><?php echo $this->escape($z->Commune);?></li>
				<?php endforeach;?>
				</ul>
		<?php endif;?>
			</div>
		</div>
		<div class="item">Comp&#233tences&nbsp;:<div>
		<?php if(is_array($this->training->Expertises) && count($this->training->Expertises)>0):?>
				<ul>
				<?php foreach ($this->training->Expertises as $expertise):?>
				<?php $z = Core_Business_Expertises::getById($expertise->getExpertiseid());?>
				<li><?php echo $this->escape($z->getName());?></li>
				<?php endforeach;?>
				</ul>
		<?php endif;?>
			</div></div>
	</div>
	<div class="line">
		<div class="item">Description&nbsp;:</div>
	</div>
	<div class="line">
		<div>
		<?php echo $this->training->Detail;?>
		</div>
	</div>
<div>
<?php if($this->rule == Core_Business_Rule::Trainer && !$this->alreadyPostulate && !$this->hastrainer):?>
<form method="post" action="<?php echo $this->url(array("controller"=>"training","module"=>"default","action"=>"postulate"));?>">
<input type="submit" value="postulate"/>
<?php echo $this->formHidden('trid',$this->training->Id);?>
</form>
<?php endif;?>
</div>
<?php if($this->rule == Core_Business_Rule::Customer):?>
<div><table><tr><th>Nom</th><th>Prenom</th><th>Action</th></tr><?php if(isset($this->candidates) && count($this->candidates)>0):?><?php echo $this->partialLoop('training/_trainerdetail.phtml',$this->candidates);?><?php endif;?></table></div>
<?php endif;?>
</div>
<div><a href="/training/index" class="backbutton">Retour</a></div>
<?php echo $this->headLink()->prependStylesheet('/styles/trshow.css');?>
<?php echo $this->headScript()->appendFile('/js/trainingdetail.js','text/javascript');?>